<table class="fileuploader" id="<<$name>>">
<tr>
    <td>
<<if ($value != "")>>
    <img name="preview_<<$name>>"  src="index.php?mode=service&page=fileloader&service=display&_file_id=<<$value>>" <<if ($imgwidth)>>width="<<$imgwidth>>"<<else>>height=50<</if>> >
<<else>>
    <img name="preview_<<$name>>" src="#" <<if ($imgwidth)>>width="<<$imgwidth>>"<<else>>height=50<</if>>>
<</if>>
    </td>
<<if ($req_minwidth)>>
    <td><button style="width:170px;" class="uploadbtn" onclick="<<$uploadfn>>('<<$popuptitle>>', '<<$name>>', <<$req_width>>, <<$req_height>>, <<$req_minwidth>>, <<$req_minheight>>); return false;">
    <<if ($value == "" || $value == "0")>>
    <<$title>>
    <<else>>
        <<if ($chgtitle)>>
            <<$chgtitle>>
        <<else>>
            <<$title>>
        <</if>>
    <</if>>
    </button></td>
<<else>>
    <td><button class="uploadbtn" onclick="<<$uploadfn>>('<<$popuptitle>>', '<<$name>>', <<$req_width>>, <<$req_height>>); return false;">
    <<if ($value == "" || $value == "0")>>
    <<$title>>
    <<else>>
        <<if ($chgtitle)>>
            <<$chgtitle>>
        <<else>>
            <<$title>>
        <</if>>
    <</if>>
    </button></td>
<</if>>
</tr>
</table>
<input type="hidden" name="<<$name>>" value="<<$value>>">

<<if ($onchange)>>
<script>
function <<$name>>_change(fileId) {
    <<$onchange>>(fileId);
}
</script>

<</if>>
